Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add builder style constructor for Client #50

Merged
merged 1 commit into from
Sep 27, 2023

Conversation

donatello
Copy link
Member

Builder style makes it easier to construct the Client because each setting is done via a separate function thus documenting the purpose the setting.

Ref: https://rust-lang.github.io/api-guidelines/type-safety.html#builders-enable-construction-of-complex-values-c-builder

src/s3/client.rs Outdated Show resolved Hide resolved
src/s3/client.rs Outdated Show resolved Hide resolved
Builder style makes it easier to construct the Client because each
setting is done via a separate function thus documenting the purpose the setting.

Also add function to set app name and version as part of user agent.

Ref: https://rust-lang.github.io/api-guidelines/type-safety.html#builders-enable-construction-of-complex-values-c-builder
@balamurugana balamurugana merged commit e9aea2a into minio:master Sep 27, 2023
1 check passed
@donatello donatello deleted the builder-style branch September 27, 2023 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants